$def with (records, config)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">

<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" media="screen" href="/~fred/work/style/record.css" />

<head>

<title>$config.site_name</title>

</head>

<body>
<div id="pager">
	<div id="header">
		<h1><a href="${config.site_url}">$config.site_name</a> <sub>$config.site_version</sub></h1>
	</div>
	
	<div id="content">
		<ul>
	$for record in records:
		$if record.active == 0:
			<li class="altRow">
				<span class="datetime">$record.created</span>
				 <a href="${config.site_url}active/${record.id}">${record.content}</a>
			</li>
		$else:
			<li>
				<span class="datetime">$record.created</span>
				 <a href="${config.site_url}active/${record.id}">${record.content}</a>
			</li>

		</ul>
	</div>
	
	<div id="post_button">
		<a href="${config.site_url}post">添加任务</a> <a href="${config.site_url}print">打印</a>
	</div>
	
	<div id="footer">
		Power by <a href="http://webpy.org" target="_blank">web.py</a>
	</div>
</div>
</body>

</html>